package zjh_20230330;

import java.io.*;
import java.util.Arrays;

public class Demo01 {
    public static void main(String[] args) {
        File file = new File("D:\\kaifamiao\\io-text\\text1.txt");
        try(FileReader fileReader = new FileReader(file);) {
            BufferedReader bufferedReader = new BufferedReader(fileReader);
            byte[] bytes = new byte[2];
            System.out.println(Arrays.toString(bytes));
//            String str = "";
//            while ((str = bufferedReader.readLine())!= null){
//                System.out.println(str);
//            }

        } catch (FileNotFoundException e) {
            throw new RuntimeException(e);
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
